type NodeEnv = {
  /**
   *数据库名
   * @type {string}
   */
  mysqlName: string
  /**
   *数据库用户名
   * @type {string}
   */
  mysqlUserName: string
  /**
   *数据库用户密码
   * @type {string}
   */
  mysqlPassword: string
  /**
   *mysql部署的机器IP
   * @type {string}
   */
  mysqlIp: string
}

const development: NodeEnv = {
  mysqlName: 'Database Name',
  mysqlUserName: 'Username',
  mysqlPassword: 'Password',
  mysqlIp: 'localhost',
}

const production: NodeEnv = {
  mysqlName: 'Database Name',
  mysqlUserName: 'Username',
  mysqlPassword: 'Password',
  mysqlIp: 'localhost',
}

export default {
  development: development,
  production: production,
}[process.env.NODE_ENV || 'development'] as NodeEnv
